<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

header("Content-type:image/jpeg");
/*
$sImage = '1.jpg';
$tWidth = 200;
$tHeight= 200;
$o = imagecreatefromjpeg($sImage);
$dims = getimagesize($sImage);
$thumb = imagecreatetruecolor($tHeight, $tWidth);
//imagecopyresampled($thumb,$o,0,0,0,0,$tWidth,$tHeight,$dims[0],$dims[1]);
imagejpeg($thumb);
 */

$im = imagecreatefromjpeg("1.jpg");
$textcolor = imagecolorallocate($im, 25, 25, 136);
$to = "xxxxxxxxxxx";
$font = "verdanab.ttf";
imagettftext($im, 80, 0, 300, 400, $textcolor, $font, $to);
$to = "xxi哈萨克立法会快乐xxx";
imagettftext($im, 80, 0, 200, 200, $textcolor, $font, $to);
imagejpeg($im);
imagedestroy($im);









?>
